package top.hzy520.common.resp;

import lombok.Data;
import top.hzy520.common.constants.Constants;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 22:11 2018/5/28
 */
@Data
public class APIResult<T> {
    private String message;
    private int code=Constants.RESP_STATUS_INTERNAL_ERROR;
    private T data;

    public APIResult(String message, int code) {
        this.message = message;
        this.code = code;
    }
}
